<!DOCTYPE html>
<html class="reftest-wait">
  <!-- When the form has @novalidate, :-moz-ui-invalid doesn't apply. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
  <body onload="document.getElementById('i').value = 'foo';
                document.documentElement.className = '';">
    <form novalidate>
      <input id='i' class='notvalid' required>
    </form>
  </body>
</html>
